package com.fsl.springbootdesignpattern.d_proxy.CglibProxy;

public class Test {

    public static void main(String[] args) {

        CglibDynamicProxy cglibDynamicProxy = new CglibDynamicProxy();

        //使用
        StudentServiceImpl student1 = (StudentServiceImpl) cglibDynamicProxy.getInstance(new StudentServiceImpl());

        student1.buyTicket("KING JAMES");

        student1.buyTicket("KOBE BRYANT");

    }

}
